{% extends "_layout.html" %}
{% import "component/statistics.njk" as statistics %}

{# 样式代码 #}
{% block style %}
<title>班级</title>
<style type="text/css">
    .mui-table-view-cell{ line-height: 44px;}
    .mui-content>.mui-table-view:first-child{ margin-top: 0;}
</style>
{% endblock %}

{# bodyd代码#}
{% block body %}
<div class="mui-content">
    <ul class="mui-table-view">
        {% for item in data%}
        <li class="mui-table-view-cell">
            <a class="mui-navigate-right" href="studentinfo?id={{item.id}}">
                {%if item.headImage%}
                <img class="mui-media-object mui-pull-left head-img" id="head-img"
                     src="{{ctx.app.config.api.image}}/{{item.headImage}}">
                {%else%}
                <img class="mui-media-object mui-pull-left head-img" id="head-img"
                     src="/images/user2.png">
                {%endif%}
                    {{item.name}}
            </a>
        </li>
        {%endfor%}
    </ul>
</div>
{% endblock %}

{#js代码#}
{% block js %}

<!--flotdemo-->
{% endblock %}
